<template>
    <view class="contact">
        <!-- 导航栏 -->
        <uni-nav-bar class="uni-navbar" fontSize="60" color="#000" title="联系方式" backgroundColor="#fff" :shadow="false"
            :border="false">
        </uni-nav-bar>
        <!-- 图片 -->
        <view class="contact-banner">
            <image class="contact-img" src="~@/static/images/contact_img.jpg" mode="aspectFill"></image>
            <view class="square"></view>
        </view>
        <view class="contact-con">
            <view class="contact-title">门店介绍</view>
            <view class="content">
                <view>介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容</view>
                <view>22介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容</view>
            </view>
            <view class="contact-title mt30">联系方式</view>
            <view class="contact-details">
                <view class="title">河南省洛阳市龙腾四海汽贸店</view>
                <view class="item">
                    <uni-icons type="phone" color="#FF5F00" size="24"></uni-icons>
                    <view class="text">
                        <text @click="callup('13868068888')">13868068888</text>
                        <text class="ml20" @click="callup('0371-68685656')">0371-68685656</text>
                    </view>
                </view>
                <view class="item">
                    <uni-icons type="location" color="#FF5F00" size="24"></uni-icons>
                    <view class="text">河南省洛阳市西工区龙腾路四海路交叉口西工区龙腾路四海路交叉口</view>
                </view>
                <view class="item navigation-item">
                    <button size="default" class="navigation-btn">
                        <view class="btn-text">
                            <uni-icons type="map" color="#fff" size="24" />
                            <text class="text">点此导航到门店</text>
                        </view>
                    </button>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
export default {
    components: {
    },
    data() {
        return {
        }
    },
    created() {
    },
    onLoad() {
    },
    methods: {
        callup(phone) {
            uni.makePhoneCall({
                phoneNumber: phone //仅为示例
            });
        }
    }
}
</script>

<style lang="scss" scoped>
page {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #fff;
    min-height: 100%;
    height: auto;
}

.contact-banner {
    width: 100%;
    height: 300rpx;
    overflow: hidden;
    position: relative;

    .contact-img {
        width: 100%;
        height: 100%;
    }

    .square {
        width: 750rpx;
        height: 20rpx;
        background: #fff;
        position: absolute;
        bottom: 0rpx;
        z-index: 100;
        left: 0;
        border-radius: 20rpx 20rpx 0rpx 0rpx;
    }
}

.contact-con {
    padding: 32rpx;
    font-size: 30rpx;
    color: #333;

    .contact-title {
        color: #3c4a54;
        font-weight: bold;
        background: #f2f2f2;
        // background: #fff8e9;
        line-height: 60rpx;
        text-indent: 20rpx;
        font-size: 30rpx;
        font-weight: 600;
        height: 60rpx;
    }

    .content {
        view {
            text-indent: 40rpx;
            line-height: 40rpx;
            margin-top: 20rpx;
        }
    }

}

.contact-details {
    font-size: 30rpx;

    .title {
        font-size: 36rpx;
        color: #FF5F00;
        margin-top: 26rpx;
    }

    .item {
        margin-top: 30rpx;
        display: flex;
    }

    .navigation-item {
        margin-top: 40rpx;
    }

    .navigation-btn {
        line-height: 80rpx;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        color: #fff;
        border: none;
        background: linear-gradient(134deg, #FD8735 0%, #FE6B04 100%);
        border-radius: 8rpx;

        .btn-text {
            display: flex;
            align-items: center;
            text-align: center;
        }

        .text {
            font-size: 30rpx;
            margin-left: 10rpx;
        }
    }
}
</style>
